package com.bootx.entity;

import jakarta.persistence.Column;
import jakarta.persistence.Entity;
import jakarta.persistence.Index;
import jakarta.persistence.Table;

/**
 * @author black
 */
@Entity
@Table(
        indexes = {
                @Index(name = "batchId_sum_position",columnList = "batchId,sum,position",unique = true)
        }
)
public class RedPackageStatistics extends BaseEntity<Long>{

    @Column(nullable = false,updatable = false)
    private Long batchId;

    private Integer count;

    @Column(length = 4000)
    private String openInfo;

    public Long getBatchId() {
        return batchId;
    }

    public void setBatchId(Long batchId) {
        this.batchId = batchId;
    }

    public Integer getCount() {
        return count;
    }

    public void setCount(Integer count) {
        this.count = count;
    }

    public String getOpenInfo() {
        return openInfo;
    }

    public void setOpenInfo(String openInfo) {
        this.openInfo = openInfo;
    }

}
